<?php

namespace App\Services\Api;

/**
 *绿色成果列表
 */
class CMS10004
{
    public $apiCode = 'CMS#10004';
    public $pageNo = 1;
    public $pageSize = 10;
    public $title = '';
    public function getInitPostData($postData)
    {
        return [
            'pageNo' => $this->getPageNo(@$postData['pageNo']),
            'pageSize' => $this->getPageSize(@$postData['pageSize']),
            'name' => $this->getTitle(@$postData['title']),

        ];
    }

    public function getPageNo($pageNo = '')
    {
        return $pageNo ? $pageNo : $this->pageNo;
    }

    public function getPageSize($pageSize = '')
    {
        return $pageSize ? $pageSize : $this->pageSize;
    }

    public function getTitle($title = '')
    {
        return $title ? $title : $this->title;
    }

    public function getInitApiCode()
    {
        return $this->apiCode;
    }

}
